﻿using chihuopig.DTO;
using chihuopig.Model;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace chihuopig.IService
{
    public interface IAdminService :IBaseService<Admin> 
    {
        Admin ChenkAdminLogin(string adminName, string Pwdword);
        
        Task<Admin> ChenkAdminLoginAsync(string adminName, string Pwdword);

        int AdminRole(long AdminId, long[] Role);

        Task<int> AdminRoleEdit(AdminRoleEditDTO model);

        /// <summary>
        /// 分页
        /// </summary>
        /// <param name="pageIndex"></param>
        /// <param name="PageSize"></param>
        /// <param name="Totalout"></param>
        /// <returns></returns>
        Task<List<Admin>> GetPage(int pageIndex, int PageSize);
    }
}
